#include "ReaderThread.h"
#include "Socket.h"
ReaderThread::ReaderThread(ClientSocket* s)
{
	m_Socket =s;
}
void ReaderThread::Work()
{
	
	while(true)
	{	
		SockMessage inMsg;
		std::string who;
		std::string s;
		if(m_Socket->Recv(&inMsg))
		{
			inMsg.ReadString(&who);
			inMsg.ReadString(&s);
			std::cout<<who.c_str()<<s.c_str()<<"\n";
		}

	}
}